package com.config.service;

import java.util.List;

import javax.annotation.Resource;

import org.springframework.stereotype.Service;

import com.config.dao.EquStateConfigDao;
import com.config.entity.EquStateConfig;


@Service(value="equStateConfigService")
public class EquStateConfigServiceImpl implements EquStateConfigService{
	
	@Resource(name = "equStateConfigDao")
	private EquStateConfigDao equStateConfigDao;

	@Override
	public void save(EquStateConfig entity) {
		equStateConfigDao.save(entity);
	}

	@Override
	public void update(EquStateConfig entity) {
		equStateConfigDao.update(entity);
	}

	@Override
	public void delete(int id) {
		equStateConfigDao.delete(id);
	}

	@Override
	public EquStateConfig getEquStateConfig(int id) {
		return equStateConfigDao.get(id);
	}

	@Override
	public List<EquStateConfig> findAll() {
		return equStateConfigDao.findAll();
	}

	@Override
	public List<EquStateConfig> findAll(int start, int limit) {
		return equStateConfigDao.findAll(start, limit);
	}

	@Override
	public int countByFindAll() {
		return equStateConfigDao.countbyFindAll();
	}

	@Override
	public EquStateConfig isRepeat(String stateType) {
		// TODO Auto-generated method stub
		return equStateConfigDao.getEquPowerValue(stateType);
	}

}
